<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>demo 2-42</title>
	</head>
	<body>
	export function area(radius){
			return Math.PI*radius*radius;
		}
		export function circumference(radius){
			return 2*Math.PI*radius;
		}
			
	</body>
	<script type="module">
		import {area,circumference} from './circle.js';
		console.log('圆面积：'+area(4));
		console.log('圆面积：'+circumference(14));
		import * as circle from './circle.js';
		console.log('圆面积：'+ circle.area(4));
		console.log('圆周长：'+circle.circumference(14));
	</script>
</html>